cmake_minimum_required(VERSION 3.8)
project(src_prop_append)

set_property(SOURCE main.c PROPERTY my_src_prop "value1")
#set_property(SOURCE main.c PROPERTY my_src_prop "value2" "value3")
#set_property(SOURCE main.c APPEND PROPERTY my_src_prop "value2" "value3")
set_property(SOURCE main.c APPEND_STRING PROPERTY my_src_prop "value2" "value3")

get_source_file_property(var main.c my_src_prop)
message(STATUS "my_src_prop = ${var}")
